package com.ddwl.schema.bo.wallet;

import io.gitee.tooleek.lock.spring.boot.annotation.Key;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.math.BigDecimal;

/**
 * 提现表(UserWithdrawRecord)返回对象
 *
 * @author zach
 * @since 2020-07-25 13:53:52
 */
@Getter
@Setter
@ApiModel(value = "提交提现申请")
public class UserWithdrawSubmitBo {

    @Key
    @ApiModelProperty(value = "用户id",hidden = true)
    private String userId;

    @NotNull
    @ApiModelProperty(value = "用户名称",required = true)
    private String userName;

    @NotNull
    @DecimalMin(value = "1.00",message = "提现金额不能小于一块钱")
    @ApiModelProperty(value = "提现金额",required = true)
    private BigDecimal totalAmount;

    @NotNull
    @ApiModelProperty(value = "类型0微信1支付宝2银行卡",required = true)
    private Integer channelType;

    @NotNull
    @ApiModelProperty(value = "账号名称",required = true)
    private String accountName;

    @ApiModelProperty(value = "账号地址")
    private String accountAddress;

    @NotNull
    @Pattern(regexp = "^1\\d{10}$",message = "请输入正确的手机号")
    @ApiModelProperty(value = "手机号",required = true)
    private String mobile;

    @NotNull
    @ApiModelProperty(value = "账号",required = true)
    private String account;

    @ApiModelProperty(value = "店铺ID",hidden = true)
    private String shopId;

    @ApiModelProperty(value = "店铺名称",hidden = true)
    private String shopName;

    @ApiModelProperty(value = "所属产品",hidden = true)
    private String product;

    @ApiModelProperty(value = "微信对应的开户行编号")
    private String wxCode;
}